#ifndef BULLET_H
#define BULLET_H

#include <QGraphicsPixmapItem>
#include<QPixmap>


class Bullet : public QGraphicsPixmapItem
{
public://子弹类型
    enum BulletType
    {
        BT_Player,
        BT_Enemy
    };
    int toward;
    explicit Bullet(QObject *parent = nullptr);
    Bullet(QPoint _pos,QPixmap _pixmap,int _type,int dirc);
    //移动
    void BulletMove();
    int mBulletType;
    int mSpeed;
    //int mShootSpeed;

};

#endif // BULLET_H
